import React from 'react';

const addSchema = (count) => {
  for (let i = 0; i < count; i++) {
    arr.push({
      key: `M${i}`,
      title: `M${i}`,
      dataType: 'varchar',
      children: [
        {
          key: `${i}money`,
          title: '本金',
          dataType: 'varchar',
        },
        {
          key: `${i}delaymoney`,
          title: '滞纳金',
          dataType: 'varchar',
        },
        {
          key: `${i}list`,
          title: '单量',
          dataType: 'varchar',
        },
        {
          key: `${i}AllCustomer`,
          title: '总客户量',
          dataType: 'varchar',
        },
        {
          key: `${i}AllOrder`,
          title: '总订单量',
          dataType: 'varchar',
        },
      ]
    })
  }
}

let arr = [
  {
    key: 'csy',
    title: '催收员',
    dataType: 'varchar',
  },{
    key: 'allMoney',
    title: '总本金',
    dataType: 'varchar',
  },{
    key: 'Allznj',
    title: '总滞纳金',
    dataType: 'varchar',
  },
  {
    key: 'AllList',
    title: '总单量',
    dataType: 'varchar',
  },
  {
    key: 'AllCustomer',
    title: '总客户量',
    dataType: 'varchar',
  },
  {
    key: 'AllOrder',
    title: '总订单量',
    dataType: 'varchar',
  }
];

addSchema(14);

module.exports = arr;